package com.dc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 巡检方案表
 *
 * @author feishaobin
 * @email
 * @date 2021-11-30 16:27:35
 */
@Data
@TableName("dc_inspection_scheme")
public class InspectionScheme implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 巡检方案名称
     */
    private String name;
    /**
     * 巡检内容计划
     */
    private String content;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 楼层
     */
    private String floor;

    /**
     * 点位信息
     */
    @TableField(exist = false)
    private List<InspectionRelation> addressInfo;

}
